package com.dstz.form.api.model;

/**
 * 表单类型 与 表单生成器的BeanID
 *
 */
public enum FormType {
    PC("pc","iviewFormElementGenerator"),
    PC_VUE("pc_vue","vueFormElementGenerator"),
    MOBILE("mobile","mobileFormElementGenerator"),
    PC_IVIEW("pc_iview","iviewFormReadOnlyShowTextElementGenerator");

    private final String value;
    private final String beanId;

    FormType(String v,String beanId) {
        value = v;
        this.beanId = beanId;
    }

    public String value() {
        return value;
    }

    public static FormType fromValue(String v) {
        for (FormType c : FormType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

	public String getBeanId() {
		return beanId;
	}

}
